<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>练习</title>
    <style>
        .box1 {
            width: 355px;
            height: 450px;
            /* background-color: slategrey; */
            text-align: center;
        }
        .box1 img {
            width: 100%;
        }
        .box1 h3 {
            margin: 0 auto;
            font-weight: 400;
        }
        .box1 .ps {
            margin: 2px 0 10px;
            font-size: 12px;
            color: #B0B0B0;
        }
        .box1 .price {
            margin: 10px 14px;
            font-size: 15px;
            color: #ff6700;
        }
        .box2 {
            position: relative;
            width: 64px;
            height: 64px;
            background-color: rosybrown;
            margin: 0 auto;
            overflow: hidden;
        }
        .box2 .img1 {
            position: absolute;
            left: 0;
            transition: all 1s;
        }
        .box2 .img2 {
            position: absolute;
            left: -64px;
            transition: all 1s;
        }
        .box2:hover .img1,
        .box2:hover .img2 {
            margin-left: 64px;
        }
    </style>
</head>
<body>
    <div class="box1">
        <img src="images/cup.webp" alt="">
        <h3>米家迷你保温杯</h3>
        <p class="ps">可以随身携带的保温杯</p>
        <p class="price">49元</p>
    </div>
    <div class="box2">
        <img class="img1" src="images/png/aichong09.png" alt="">
        <img class="img2" src="images/png/aichong10.png" alt="">
    </div>
</body>
</html>